<!--
Copyright 2017 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<script src="../testdata/testutils.js"></script>
<script src="../../base.js"></script>
<script src="../testdata/deps.js"></script>
<script>
  assertNull(goog.getObjectByName('test.js.GoogModule'));
  GoogModule = goog.module.get('test.js.GoogModule');
  assertTrue(GoogModule == null);

  goog.require('test.js.GoogModule');
//# sourceURL=requiregoogmodulepretest.js
</script>
<script>
  // Though available this module does not declare legacy namespace.
  assertNull(goog.getObjectByName('test.js.GoogModule'));
  GoogModule = goog.module.get('test.js.GoogModule');
  assertNotNull(GoogModule);
  assertEquals('GOOG-MODULE', GoogModule.NAME);
//# sourceURL=requiregoogmoduletest.js
</script>
<script>
  done();
</script>
